package com.jinghua.treatment.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysInquiryAnswersExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer limitEnd;

    public SysInquiryAnswersExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(Integer limitEnd) {
        this.limitEnd=limitEnd;
    }

    public Integer getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("`id` is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("`id` is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("`id` =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("`id` <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("`id` >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("`id` >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("`id` <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("`id` <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("`id` in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("`id` not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("`id` between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("`id` not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andInquiryIdIsNull() {
            addCriterion("`inquiry_id` is null");
            return (Criteria) this;
        }

        public Criteria andInquiryIdIsNotNull() {
            addCriterion("`inquiry_id` is not null");
            return (Criteria) this;
        }

        public Criteria andInquiryIdEqualTo(Integer value) {
            addCriterion("`inquiry_id` =", value, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andInquiryIdNotEqualTo(Integer value) {
            addCriterion("`inquiry_id` <>", value, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andInquiryIdGreaterThan(Integer value) {
            addCriterion("`inquiry_id` >", value, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andInquiryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("`inquiry_id` >=", value, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andInquiryIdLessThan(Integer value) {
            addCriterion("`inquiry_id` <", value, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andInquiryIdLessThanOrEqualTo(Integer value) {
            addCriterion("`inquiry_id` <=", value, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andInquiryIdIn(List<Integer> values) {
            addCriterion("`inquiry_id` in", values, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andInquiryIdNotIn(List<Integer> values) {
            addCriterion("`inquiry_id` not in", values, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andInquiryIdBetween(Integer value1, Integer value2) {
            addCriterion("`inquiry_id` between", value1, value2, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andInquiryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("`inquiry_id` not between", value1, value2, "inquiryId");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("`description` is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("`description` is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("`description` =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("`description` <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("`description` >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("`description` >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("`description` <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("`description` <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("`description` like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("`description` not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("`description` in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("`description` not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("`description` between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("`description` not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateIsNull() {
            addCriterion("`inquiry_createDate` is null");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateIsNotNull() {
            addCriterion("`inquiry_createDate` is not null");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateEqualTo(Date value) {
            addCriterion("`inquiry_createDate` =", value, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateNotEqualTo(Date value) {
            addCriterion("`inquiry_createDate` <>", value, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateGreaterThan(Date value) {
            addCriterion("`inquiry_createDate` >", value, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("`inquiry_createDate` >=", value, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateLessThan(Date value) {
            addCriterion("`inquiry_createDate` <", value, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("`inquiry_createDate` <=", value, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateIn(List<Date> values) {
            addCriterion("`inquiry_createDate` in", values, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateNotIn(List<Date> values) {
            addCriterion("`inquiry_createDate` not in", values, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateBetween(Date value1, Date value2) {
            addCriterion("`inquiry_createDate` between", value1, value2, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andInquiryCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("`inquiry_createDate` not between", value1, value2, "inquiryCreatedate");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionIsNull() {
            addCriterion("`self_description` is null");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionIsNotNull() {
            addCriterion("`self_description` is not null");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionEqualTo(String value) {
            addCriterion("`self_description` =", value, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionNotEqualTo(String value) {
            addCriterion("`self_description` <>", value, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionGreaterThan(String value) {
            addCriterion("`self_description` >", value, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("`self_description` >=", value, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionLessThan(String value) {
            addCriterion("`self_description` <", value, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionLessThanOrEqualTo(String value) {
            addCriterion("`self_description` <=", value, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionLike(String value) {
            addCriterion("`self_description` like", value, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionNotLike(String value) {
            addCriterion("`self_description` not like", value, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionIn(List<String> values) {
            addCriterion("`self_description` in", values, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionNotIn(List<String> values) {
            addCriterion("`self_description` not in", values, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionBetween(String value1, String value2) {
            addCriterion("`self_description` between", value1, value2, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andSelfDescriptionNotBetween(String value1, String value2) {
            addCriterion("`self_description` not between", value1, value2, "selfDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionIsNull() {
            addCriterion("`inquiry_description` is null");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionIsNotNull() {
            addCriterion("`inquiry_description` is not null");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionEqualTo(String value) {
            addCriterion("`inquiry_description` =", value, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionNotEqualTo(String value) {
            addCriterion("`inquiry_description` <>", value, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionGreaterThan(String value) {
            addCriterion("`inquiry_description` >", value, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("`inquiry_description` >=", value, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionLessThan(String value) {
            addCriterion("`inquiry_description` <", value, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionLessThanOrEqualTo(String value) {
            addCriterion("`inquiry_description` <=", value, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionLike(String value) {
            addCriterion("`inquiry_description` like", value, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionNotLike(String value) {
            addCriterion("`inquiry_description` not like", value, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionIn(List<String> values) {
            addCriterion("`inquiry_description` in", values, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionNotIn(List<String> values) {
            addCriterion("`inquiry_description` not in", values, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionBetween(String value1, String value2) {
            addCriterion("`inquiry_description` between", value1, value2, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryDescriptionNotBetween(String value1, String value2) {
            addCriterion("`inquiry_description` not between", value1, value2, "inquiryDescription");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryIsNull() {
            addCriterion("`inquiry_history` is null");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryIsNotNull() {
            addCriterion("`inquiry_history` is not null");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryEqualTo(String value) {
            addCriterion("`inquiry_history` =", value, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryNotEqualTo(String value) {
            addCriterion("`inquiry_history` <>", value, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryGreaterThan(String value) {
            addCriterion("`inquiry_history` >", value, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryGreaterThanOrEqualTo(String value) {
            addCriterion("`inquiry_history` >=", value, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryLessThan(String value) {
            addCriterion("`inquiry_history` <", value, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryLessThanOrEqualTo(String value) {
            addCriterion("`inquiry_history` <=", value, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryLike(String value) {
            addCriterion("`inquiry_history` like", value, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryNotLike(String value) {
            addCriterion("`inquiry_history` not like", value, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryIn(List<String> values) {
            addCriterion("`inquiry_history` in", values, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryNotIn(List<String> values) {
            addCriterion("`inquiry_history` not in", values, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryBetween(String value1, String value2) {
            addCriterion("`inquiry_history` between", value1, value2, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryHistoryNotBetween(String value1, String value2) {
            addCriterion("`inquiry_history` not between", value1, value2, "inquiryHistory");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyIsNull() {
            addCriterion("`inquiry_allergy` is null");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyIsNotNull() {
            addCriterion("`inquiry_allergy` is not null");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyEqualTo(String value) {
            addCriterion("`inquiry_allergy` =", value, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyNotEqualTo(String value) {
            addCriterion("`inquiry_allergy` <>", value, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyGreaterThan(String value) {
            addCriterion("`inquiry_allergy` >", value, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyGreaterThanOrEqualTo(String value) {
            addCriterion("`inquiry_allergy` >=", value, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyLessThan(String value) {
            addCriterion("`inquiry_allergy` <", value, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyLessThanOrEqualTo(String value) {
            addCriterion("`inquiry_allergy` <=", value, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyLike(String value) {
            addCriterion("`inquiry_allergy` like", value, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyNotLike(String value) {
            addCriterion("`inquiry_allergy` not like", value, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyIn(List<String> values) {
            addCriterion("`inquiry_allergy` in", values, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyNotIn(List<String> values) {
            addCriterion("`inquiry_allergy` not in", values, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyBetween(String value1, String value2) {
            addCriterion("`inquiry_allergy` between", value1, value2, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andInquiryAllergyNotBetween(String value1, String value2) {
            addCriterion("`inquiry_allergy` not between", value1, value2, "inquiryAllergy");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("`remark` is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("`remark` is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("`remark` =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("`remark` <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("`remark` >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("`remark` >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("`remark` <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("`remark` <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("`remark` like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("`remark` not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("`remark` in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("`remark` not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("`remark` between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("`remark` not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andPatientIdIsNull() {
            addCriterion("`patient_id` is null");
            return (Criteria) this;
        }

        public Criteria andPatientIdIsNotNull() {
            addCriterion("`patient_id` is not null");
            return (Criteria) this;
        }

        public Criteria andPatientIdEqualTo(Integer value) {
            addCriterion("`patient_id` =", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotEqualTo(Integer value) {
            addCriterion("`patient_id` <>", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThan(Integer value) {
            addCriterion("`patient_id` >", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("`patient_id` >=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThan(Integer value) {
            addCriterion("`patient_id` <", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThanOrEqualTo(Integer value) {
            addCriterion("`patient_id` <=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdIn(List<Integer> values) {
            addCriterion("`patient_id` in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotIn(List<Integer> values) {
            addCriterion("`patient_id` not in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdBetween(Integer value1, Integer value2) {
            addCriterion("`patient_id` between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotBetween(Integer value1, Integer value2) {
            addCriterion("`patient_id` not between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIsNull() {
            addCriterion("`doctor_id` is null");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIsNotNull() {
            addCriterion("`doctor_id` is not null");
            return (Criteria) this;
        }

        public Criteria andDoctorIdEqualTo(Integer value) {
            addCriterion("`doctor_id` =", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotEqualTo(Integer value) {
            addCriterion("`doctor_id` <>", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdGreaterThan(Integer value) {
            addCriterion("`doctor_id` >", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("`doctor_id` >=", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdLessThan(Integer value) {
            addCriterion("`doctor_id` <", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdLessThanOrEqualTo(Integer value) {
            addCriterion("`doctor_id` <=", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIn(List<Integer> values) {
            addCriterion("`doctor_id` in", values, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotIn(List<Integer> values) {
            addCriterion("`doctor_id` not in", values, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdBetween(Integer value1, Integer value2) {
            addCriterion("`doctor_id` between", value1, value2, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("`doctor_id` not between", value1, value2, "doctorId");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("`create_date` is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("`create_date` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("`create_date` =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("`create_date` <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("`create_date` >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("`create_date` >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("`create_date` <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("`create_date` <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("`create_date` in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("`create_date` not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("`create_date` between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("`create_date` not between", value1, value2, "createDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}